package com.heying.springcore.spel;

import com.heying.springcore.SpringConfig;
import com.heying.springcore.javaconfig.Student;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestSpring {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(SpringConfig.class);
//      DbConfig dbConfig = context.getBean(DbConfig.class);
//       System.out.println(dbConfig);

        SpEl bean = context.getBean(SpEl.class);
        System.out.println(bean);
    }
}
